package ex12;

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.util.Locale;

public class Main {

	public static void main(String[] args) throws IOException {
		
		InputStreamReader it = new InputStreamReader(System.in);
		BufferedReader in = new BufferedReader(it);
		
		String input;
		String[] inputParts = new String[3];
		double A, B, C;
		double[] quiz = new double[5];
		final double PI = 3.14159;
		
		input = in.readLine();
		inputParts = input.split(" ", 3);
		
		A = Double.parseDouble(inputParts[0]);
		B = Double.parseDouble(inputParts[1]); 
		C = Double.parseDouble(inputParts[2]);
		
		quiz[0] = A * C / 2;
		quiz[1] = PI * Math.pow(C, 2);
		quiz[2] = (C * (A + B)) / 2;
		quiz[3] = B * B;
		quiz[4] = A * B;

		System.out.format(Locale.ENGLISH, "TRIANGULO: %.3f\n", quiz[0]);
		System.out.format(Locale.ENGLISH, "CIRCULO: %.3f\n", quiz[1]);
		System.out.format(Locale.ENGLISH, "TRAPEZIO: %.3f\n", quiz[2]);
		System.out.format(Locale.ENGLISH, "QUADRADO: %.3f\n", quiz[3]);
		System.out.format(Locale.ENGLISH, "RETANGULO: %.3f\n", quiz[4]);

	}
	
}
